#include "moleweight.h"
double getMw(std::string atom) {
    if (elements.find(atom) == elements.end()) {
        throw std::exception((std::string("No such element: " + atom).c_str()));
    }
    return elements[atom];
}